﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnLineExam.Web.Models
{
	public class ServiceResult<T> 
	{
		public int Code { get; set; }

		public string Message { get; set; }

		public T  Data { get; set; }

		
	}

	public class ServiceResult: ServiceResult<object>
	{
		public ServiceResult(int code,string msg,object data) {
			this.Code = code;
			this.Message = msg;
			this.Data = data;
		}

		public static ServiceResult CreateResult(int code, string msg, object data) {
			return new ServiceResult(code, msg, data);
		}
	}
}